<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script>
			//基本变量
			var a = 10;
			var s = "培优课程";
			var colors = ["red","black","blue"];
			
			console.log(colors);
			console.log(colors[2])
			
			/*函数定义(方法)*/
			function add(a,b){
				return a + b;
			}
			
			/*函数调用*/
			var r = (10,20);
			console.log(r);
		</script>
	</head>
	<body>
	</body>
</html>
